package com.project.service.impl;

import com.project.bean.HistogramBean;
import com.project.mapper.IHistogramMapper;
import com.project.mapper.IPieMapper;
import com.project.service.IHistogramService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Service
@Transactional
public class HistogramServiceImpl implements IHistogramService {
    @Autowired
    private IHistogramMapper histogramMapper;

    @Override
    public List<HistogramBean>  findByItem(Integer year) {
        return histogramMapper.findByItem(year);

    }
}
